package com.example.rlw.mvpplugintest.net;


import com.example.rlw.mvpplugintest.bean.UserBean;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * Created by rlw on 2018/10/11.
 */

public interface HttpService {

    @POST("/login")
    @FormUrlEncoded
    Observable<HttpResponseData<List<UserBean>>> login(@Field("userName") String userName, @Field("userPwd") String userPwd);

    @POST("/login")
    @FormUrlEncoded
    Observable<HttpResponseData<List<UserBean>>> getData(@Field("userName") String userName, @Field("userPwd") String userPwd);
}
